package com.example.spring3.service.impl;


import com.example.spring3.dao.IAddressDao;
import com.example.spring3.model.Address;
import com.example.spring3.service.IAddressService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class AddressServiceImpl implements IAddressService {
    @Autowired
    private IAddressDao addressDao;
    @Override
    public int insertAddress() {
        int id=1;
        Address address=new Address();
        address.setId(id);
        address.setAddr("石家庄");
        return  addressDao.insertAddress(address);
    }
}
